\name{RequireInstall}
\alias{RequireInstall}
\title{Require or Install Packages}
\description{
This is designed to be an alternate version of \code{require} that if the package has not already been installed, installs the package first, then loads it.  This is an internal function and is not typically meant to be called directly.
}
\usage{
RequireInstall(x)
}
\arguments{
  \item{x}{\code{x} a package to be loaded (via \code{require}) or installed then loaded (if it was not already installed).
}
}
\details{This is just designed to simplify the process or requiring a package for scripts etc. that will install the package if it is missing.}
\value{Called for its side effect of loading/installing packages.
}
\author{Joshua Wiley, \url{http://joshuawiley.com/}}
\note{Since I wrote it, and I am at UCLA, it uses the UCLA CRAN mirror.  Again, this was designed to be user friendly and make sure the package was loaded without needing input so it is necessary to set a default repo incase none is specified.}

\seealso{\code{\link{require}} and \code{\link{install.packages}}}

\examples{
## No examples.
}
\keyword{utilities}
